const utils = require('./config/utils')

module.exports = {
  baseUrl:process.env.BASE_URL,
  outputDir:'dist',
  lintOnSave:true,
  compiler:false,
  chainWebpack: () => {},
  configureWebpack: () => {},
  productionSourceMap: true,
  css:{
    extract:false,
    sourceMap:true
  },
  parallel: require('os').cpus().length > 1,
  dll:true,
  devServer:{
    clientLogLevel: 'warning',
    open: process.platform === 'darwin',
    host: utils.getLocalIp(),
    port: process.env.VUE_APP_POST,
    https: false,
    hotOnly: false,
    proxy: null, // string | Object
    before: app => {
      // `app` 是一个 express 实例
    }
  },
  // 第三方插件的选项
  pluginOptions: {
    // ...
  }
}
